﻿<UserControl x:Class="RapidDict.Modules.Menu.Views.MenuView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:commands="clr-namespace:Microsoft.Practices.Composite.Presentation.Commands;assembly=Microsoft.Practices.Composite.Presentation">
    <Grid Margin="1">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="32" />
            <ColumnDefinition Width="32" />
            <ColumnDefinition Width="32" />
        </Grid.ColumnDefinitions>
        <Menu 
            Background="White"
            Grid.Column="0"
            IsMainMenu="True" 
            FontSize="13">
            <MenuItem Header="_File" >
                <MenuItem Header="_Exit" Command="{Binding Path=ExitCommand}"/>
            </MenuItem>
            <MenuItem Header="_Tools" >
                <MenuItem Header="Always on _Top" IsCheckable="True" IsChecked="{Binding Path=IsPined}"/>
                <MenuItem Header="Online _Services">
                    <MenuItem Header="Language learning with _WordSteps.com"
                              Command="{Binding Path=HyperlinkClickCommand}"
                              CommandParameter="http://wordsteps.com/" />
                    <MenuItem Header="_Active Vocabulary of Everyday Life"
                              Command="{Binding Path=HyperlinkClickCommand}"
                              CommandParameter="http://wordsteps.com/products/most_common_words_of_everyday_life/" />
                    <MenuItem Header="WordSteps Mobile _Client"
                              Command="{Binding Path=HyperlinkClickCommand}"
                              CommandParameter="http://wordsteps.com/wmc/wordsteps_mobile_client/" />
                    <!--<MenuItem Header="_Find in Wikipedia" />-->
                    <!--<MenuItem Header="_Search the Web" />-->
                </MenuItem>
            </MenuItem>
            <MenuItem Header="_Help">
                <!--<MenuItem Header="_About" />-->
                <MenuItem Header="Help to Develop"
                          Command="{Binding Path=HyperlinkClickCommand}"
                          CommandParameter="http://rapiddict.codeplex.com/" />
                <MenuItem Header="Donate"
                          Command="{Binding Path=HyperlinkClickCommand}"
                          CommandParameter="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=6B4LPGKTKG7GS" />
                
                <MenuItem Header="Support"
                          Command="{Binding Path=HyperlinkClickCommand}"
                          CommandParameter="http://wordsteps.com/contacts/" />
            </MenuItem>
        </Menu>
        <Button 
            commands:Click.Command="{Binding PinCommand}"
            Grid.Column="2">
            <Button.Template>
                <ControlTemplate TargetType="Button">
                    <Image Height="16" Source="{Binding Path=PinImageSource}"/>
                </ControlTemplate>
            </Button.Template>
        </Button>

        <Button 
            Grid.Column="3"
            commands:Click.Command="{Binding PlaySoundCommand}" 
            commands:Click.CommandParameter="{Binding Path=PlaySoundHelper}">
            <Image Height="16" Source="/RapidDict.Modules.Menu;Component/Images/play-icon.png"/>
        </Button>
        
    </Grid>
</UserControl>
